package com.example.design.singleton;


/**
 * @Author: duk
 * @Date: 2021/12/8 17:18
 * @Description: 饿汉式单例模式
 */
public class BeforeSingleton {
    private static BeforeSingleton beforeSingleton = new BeforeSingleton();
    private BeforeSingleton() {
    }

    public static BeforeSingleton getBeforeSingleton(){
        return beforeSingleton;
    }

}
